var _tools = require("../../../utils/tools.js"), _tools2 = _interopRequireDefault(_tools);

function _interopRequireDefault(t) {
    return t && t.__esModule ? t : {
        default: t
    };
}

var that, app = getApp(), WxParse = require("../../wxParse/wxParse.js");

Page({
    data: {
        num: 0,
        id: 0
    },
    onLoad: function(t) {
        (that = this).data.id = t.id;
    },
    onReady: function() {
        var t = {
            action: "details",
            contr: "news",
            token: wx.getStorageSync("token"),
            id: that.data.id
        };
        _tools2.default.request(t, function(t) {
            that.setData(t.info);
            var e = t.info.news.content;
            WxParse.wxParse("article", "html", e, that, 5);
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: this.data.share.text,
            imageUrl: this.data.share.images,
            path: "bh_rising/pages/index/index?parent_id=" + this.data.share.member_id
        };
    }
});